<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'addtask.jsp' starting page</title>
	<link href="../css/application-766336123a9b61bedf26182718c02860.css" media="all" rel="stylesheet" type="text/css">
	<script type="text/javascript" async="" src="js/ga.js"></script><script src="../js/application-e8369d8531953caeeedd0118548cdc1c.js" type="text/javascript"></script>
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../js/bootstrap-dropdown.js"></script>
	<link rel="stylesheet" href="../css/bootstrap.min.css" />
	<meta content="authenticity_token" name="csrf-param">
	<script  type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
	
	       <link rel="stylesheet" href="css/select2.css">
	     <!--  <script src="Select2 2.1_files/jquery.js"></script>
          <script src="Select2 2.1_files/bootstrap.min.js"></script> -->
		  <script src="../Select2 2.1_files/select2.js"></script>
<meta content="4NAq56gfzq9IhDJLLR4pUWgQs7xLI5nFWq6+6mYHmUA=" name="csrf-token">
	
	
<style type="text/css" media="screen">
	div.select_access_policy .scope {
		margin:2px 0;
	}
	div.select_access_policy .scope .editor {
		display:none;
	}
	div.select_access_policy .activated .editor {
		display:block;
		margin:2px 15px;
	}
	div.select_access_policy .hide {
		display:none;
	}
</style>

	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {
			$('#search').marcoPolo({
			  url: '/search',
			  formatItem: function (data, $item) {
			    return data.icon + data.name;
			  },
			  onSelect: function (data, $item) {
					if (data.url != '#') {
						$('#search').val(data.name);
				    window.location = data.url;
					}
			  }
			});
			
			validate_form('#task_form', true)
			
			$('a.zoom').fancyZoom({scaleImg: true, closeOnClick: true})
			
			$('#search-link').data('tooltip').options.placement = 'bottom';
		});
		
		$(document).scroll(function(){
	    if ($('.back-top').attr('data-top') <= $(this).scrollTop())
        $('.back-top').removeClass('hide');
	    else
        $('.back-top').addClass('hide');
		});
		
	</script>
  </head>
  
<body class="crm" >
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="https://1344267101.workxp.info/"><img alt="Workxp-logo" src="../img/workxp-logo-68b281b82e899ff436ecf42ebcc1bc58.png"></a>
				<div class="nav-collapse">
		  		<ul class="nav">
						<li class="divider-vertical"></li>
						<li class=""><a href="../main.action">最新动态</a></li>
						<li class=""><a href="#">联系人</a></li>
						<li class="active"><a href="task.action">任务</a></li>
						<li class=""><a href="#">机会</a></li>
			    </ul>
					
					<ul class="nav">
					  <li class="dropdown">
							<a href="https://1344267101.workxp.info/people/new#" class="dropdown-toggle" data-toggle="dropdown">
						    添加
						    <span class="caret"></span>
						  </a>
						  <ul class="dropdown-menu new-actions">
						    <li><a href="../contact/addcontact.action"><i class="icon-person"></i> 联系人</a></li>
								<li><a href="../contact/addcompany.action"><i class="icon-company"></i> 公司</a></li>
								<li class="divider"></li>
								<li><a href="#"><i class="icon-ok"></i> 任务</a></li>
								<li><a href="../deal/adddeal.action"><i class="icon-dollar"></i> 机会</a></li>
						  </ul>
						</li>
					</ul>
					<ul class="nav">
						<li class="divider-vertical"></li>
					</ul>
					<form class="navbar-search">
						<input type="text" name="search" id="search" class="search-query mp_input" placeholder="搜索联系人或机会" autocomplete="off" x-webkit-speech="" style="height:25px;"><ul class="typeahead dropdown-menu mp_list" style="display: none; "></ul>
					</form>
					
					<ul class="nav">
						<li><a href="https://1344267101.workxp.info/notes/search" rel="tooltip" id="search-link" data-original-title="搜索事件"><i class="icon-cog"></i></a></li>
					</ul>
			
					<ul class="nav pull-right">
						<li class=""><a href="https://1344267101.workxp.info/profiles">${sessionScope.user.username}</a></li>
						
								<li class="dropdown">
									<a data-toggle="dropdown" class="dropdown-toggle" href="https://1344267101.workxp.info/people/new#">管理 <b class="caret"></b></a>
									<ul class="dropdown-menu settings">
										<li><a href="https://1344267101.workxp.info/product_users"><i class="icon-user"></i> 同事</a></li>
										<li><a href="https://1344267101.workxp.info/groups"><i class="icon-group"></i> 组</a></li>
										<li class="divider"></li>
										<li><a href="https://1344267101.workxp.info/settings"><i class="icon-cog"></i> 帐号</a></li>
									</ul>
								</li>
						
						<li class="divider-vertical"></li>
						<li class=""><a href="../logout.action">退出</a></li>
					</</ul>
				</</div>
		  </div>
	  </div>
  </div>
  
  
	<div class="container">
		
			<div class="row">
				  <div class="span2"></div>
				  <div class="span8" >
					<div class="page-header well" style="background-color:#F0F5F8;">
						  <h2 id="gf"><img src="img/tasks.png" alt="" />&nbsp;添加任务</h2>
						</div>
			<div class="page-header well" style="height:300px; background-color:#FFFFFF;" >
				 <form action="save.action" method="post"  style="margin-left:70px;margin-top:10px">
	          <div class="" >

	  	    	<span style="font-size:16px;font-weight:bold;padding-right:5px;">标 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题:</span><input type="text" id="title" name="task.title" style="height:25px;" />
	             
	         </div>
	         
	         <br>
	  <div>
	  
			<!-- <input id="d11" type="text" onClick="WdatePicker()"  /> -->
			
	         <span style="font-size:16px;font-weight:bold;padding-right:-20px;margin-right:-10px;">开始时间：</span>
	         <input id="d12" type="text" name="task.startdate" style="height:25px;"/>
        <img onclick="WdatePicker({el:'d12'})" src="../My97DatePicker/skin/datePicker.gif" width="16" height="22" ><br><br>
	      <span style="font-size:16px;font-weight:bold;padding-right:-20px;margin-right:-6px;" >结束时间：</span><input id="d13" type="text" name="task.enddate" style="height:25px;"/>
      <img onclick="WdatePicker({el:'d13'})" src="../My97DatePicker/skin/datePicker.gif" width="16" height="22"><br><br>
                   
          <span style="font-size:16px;font-weight:bold;padding-right:-20px;margin-right:-10px;">选择类别：</span>
          <select style="width: 200px;" id="e2" name="taskType.id">
				<option></option>
				<c:forEach items="${types}" var="v">
				<option value="${v.id }">${v.type}</option>
				</c:forEach>
 				<option value="AK">Alaska</option>
				<option value="AZ">Arizona</option>
		</select> 
			     <a href="editType.action">编辑类别</a>
	</div><br>
	<input name='check'  name="task.alls" value="true" type='checkbox' style='float:left;margin-top:2px;'/>是否所有人可见
	  
	  <div style="margin-top:10px;margin-left:30px">
		
		<input type="submit" class="btn btn-primary" value="保存更新">
		<a   href="task.action" class="btn ">取消</a>
	  </div> 
	  </form>
	
	
	</div>	
		
</div>
</div>
</div>
</div>
		
	
	<script type="text/javascript">
		
		
	
		
	 $(document).ready(function() { 
	
		   
          
		      $("#e2").select2({
		
               // placeholder: "Select a State",
                allowClear: true
			
            });
        
		
			
			
			});
		
    </script>
	

	
</body>
</html>
